from multiprocessing import Process
import os

def worker():
    print("子进程PID:", os.getpid())
    print("worker start")

if __name__ == '__main__':
    p = Process(target = worker)
    p.start()
    p.join()
    print("worker end")
    print("父进程PID", os.getpid())


